//
//  AppConfiguration.swift
//  SXH_SwiftProject
//
//  Created by 孙先华 on 2019/5/6.
//  Copyright © 2019 سچچچچچچ. All rights reserved.
//  全局配置文件

import Foundation
import UIKit
import Photos //导入库
//*************************全局属性***************************
public let ScreenWidth = UIScreen.main.bounds.size.width
public let ScreenHeight = UIScreen.main.bounds.size.height
public var ScreenMainBounds = UIScreen.main.bounds


let NavigationBarHeight :CGFloat = ScreenHeight >= 812.0 ? 88.0 : 64.0
let StatusBarHeight :CGFloat = ScreenHeight >= 812.0 ? 44.0 : 20.0
let SafeAreaBottom :CGFloat = ScreenHeight >= 812.0 ? 34.0 : 0.0

let bottomHeight :CGFloat = tableBarHeight == 70.0 ? 49 : tableBarHeight
var tableBarHeight :CGFloat = AppConfiguration.isIponex ? 83 : 70.0 //在初始化tabbar 时会获取真实数值


public struct AppConfiguration{
    
    static let baseUrl = "https://newsapi.org/"
    static let appKey  = "653c15621b974a85a30a93c2e0a7d9cb"

    
    static let newsJsonKey = "newsJsonKey"
    static let searchJsonKey = "searchJsonKey"
    
    static var isIponex:Bool{
        
        let screenHeight = UIScreen.main.bounds.size.height;
        if screenHeight == 2436 || screenHeight == 1792 || screenHeight == 2688 || screenHeight == 1624 {
           return true
        }
        return false
    }

}



